package com.liyunc.demo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    /**
     * 测试视频获取第一帧.
     */
    public static void main(String[] args) {
        String url = "C:\\Users\\liyunc\\Videos\\kobe.mp4";
        String targetFile = "E:\\temp\\202107\\24\\save\\" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".jpg";
        // 开始
        new MediaToImage().openMediaAndSaveImage(url,targetFile);
    }
}
